
int geo_neighbors(unsigned long* code, unsigned int xLength, unsigned int yLength, unsigned char size, unsigned long* neiCode, unsigned int* upMax, unsigned int* rightMax, double radius, double width,double height);
int encode(double xMax, unsigned int xLength, unsigned char size, double x, double y, unsigned long* code);